package top.chmin.project.cloud.sys.config.info;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RestController;
import top.chmin.project.cloud.common.Page;
import java.util.List;



/**
 * chmin
 * 2024-01-25 14:19:00
 * cloud-code
 */
@RestController
public class ConfigInfoController implements
/*###########auto#start###########*/
        ConfigInfoSelectConfigCodeOptionRest,
        /*###########auto##end############*/
        /* append $controllerSelectOptionRestAppender$ */
        ConfigInfoSaveRest,
        ConfigInfoSelectRest,
        ConfigInfoUpdateRest,
        ConfigInfoDeleteRest,
        ConfigInfoPageRest {

    @Resource
    private ConfigInfoService configInfoService;

    @Override
    public int save(ConfigInfoSaveRest.P p) {
        return configInfoService.save(p);
    }

    @Override
    public ConfigInfoSelectRest.R select(ConfigInfoSelectRest.P p) {
        return configInfoService.select(p);
    }

    @Override
    public int update(ConfigInfoUpdateRest.P p) {
        return configInfoService.update(p);
    }

    @Override
    public int delete(ConfigInfoDeleteRest.P p) {
        return configInfoService.delete(p);
    }

    @Override
    public Page<ConfigInfoPageRest.R> page(ConfigInfoPageRest.P p) {
        return configInfoService.page(p);
    }

    /*###########auto#start###########*/
    public List<ConfigInfoSelectConfigCodeOptionRest.R> selectConfigCodeOption(ConfigInfoSelectConfigCodeOptionRest.P p) {
        return configInfoService.selectConfigCodeOption(p);
    }

    /*###########auto##end############*/
    /* append $controllerSelectOptionMethodAppender$ */
}
